package authentication.web.beans;

import authentication.ejb.usermanagement.UserMgr;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import dtos.UserDTO;

@ManagedBean
@RequestScoped
public class UserBean {
	
	@EJB
	private  UserMgr userMgr;
	
	public String getName() {
		return userMgr.getUserDTO().getName();
	}
	
	public UserDTO getUser() {
		return userMgr.getUserDTO();
	}
	
	public String getUsername() {
		return userMgr.getUserDTO().getUsername();
	}
}
